package com.jianyushe.mysqltest.controller;

import com.jianyushe.mysqltest.entity.Sc;
import com.jianyushe.mysqltest.service.impl.ScServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Alvin
 * @since 2022-05-08
 */
@Controller
@RequestMapping("/sc")
public class ScController {
    @Autowired
    ScServiceImpl scService;

    @RequestMapping("/stest")
    public void stest() {
        scService.selectSnoByCompareScore();


        Sc sc = new Sc();
        sc.setCno("s001");
      //  sc.setSno("c001");
        scService.queryById(sc);
    }
}
